<title>发送通知 - <?=$GLOBALS['web_title']?></title>
<link rel="stylesheet" type="text/css" href="css/aliceui.min.css"/>
<link rel="stylesheet" type="text/css" href="css/resetui.css"/>
<link rel="stylesheet" type="text/css" href="css/noticet.css"/>
<div class="r_content">
    <h3 class="mc_title">
        <span class="mctit_1"><span class="mctit_2">发布通知</span></span>
    </h3>
    <div class="send">
        <ul class="fixed">
            <li>
                <span class="L">通知人数：</span><span class="R" id="ResivePerson"><?=$total?></span>
                <a href="partner.html" target="_blank">查看</a>
            </li>
            <li>
                <span class="L">短信费用：</span><span id="sms_fee" class="R"><?=$sms_fee?></span>元/条
            </li>
            <li class="seperator">
                <span class="L">短信条数：</span><span class="R" id="MsgCount">0</span>
            </li>
            <li>
                <span class="L">总金额：</span><span class="R" id="TotalFee">0</span>元
            </li>
            <li class="tip mrt-10">说明：</li>
            <li class="tip">
                1.“通知人数”指接收短信的人数，已设置屏蔽通知的分销商不计算在内；
            </li>
            <li class="tip">
                2.若账户余额不足无法发送短信，需先充值。
            </li>
        </ul>
        <form id="ourfrm">
            <input type="hidden" name="todo" value="create"/>
            <input type="hidden" name="did" value="<?=$did?>"/>
            <input type="hidden" name="ResivePerson" value="<?=$total?>"/>
            <?=$adminHiddenInput?>
            <p>
                <span class="title">通知标题：</span>
                <input type="text" class="sendtxt" name="title"/>
            </p>
            <!-- <p>
                <span class="title">短信通知：</span>
                <label for="sendsms"><input type="checkbox" value="1" name="sendsms" id="sendsms" style="vertical-align: middle;"/>同时发送短信</label>
            </p> -->
			<!--屏蔽短信通知 隐藏域-->
			<input type="hidden" name="sendsms" value="0" />
            <p>
                <span class="title">通知日期：</span>
                <input type="text" name="bt" class="sendtxt" disabled="disabled" style="width:95px;" value="<?=date('Y-m-d')?>"/>至
                <input type="text" name="et" class="sendtxt" onmouseup="SelectDate(this,'yyyy-MM-dd',0,0)" style="width:95px;" />
                (通知到期后将不显示，不选表示长期有效。)
            </p>
            <p>
                <span class="title">通知内容：</span>
				<textarea id="detailInfo1" name="content" class="sendtare" data-required="2" title="请输入" ></textarea>
                <!--<textarea name="content" class="sendtare"></textarea>-->
            </p>
            <div class="countLen"><p id="CharTxt"><span>字数统计：</span><span id="CharLen"></span></p></div>
            <?if(count($dprods)>0){?>
            <div class="prod_list">
                <span class="title">牵涉产品：</span>
                <a href="javascript:" id="select_lnk_prods">添加</a>
                <ul id="selected_lnk_prods"></ul>
            </div>
            <?}?>
            <p style="padding:10px 0 0 300px;clear: both;">
                <input type="button" class="ui-button ui-button-morange" id="submitBtn" value="提交" />
                <span class="edit_disable">(通知发布后不可更改)</span>
            </p>
        </form>
    </div>
</div>
<?if(count($dprods)>0){?>
<div id="lnk_prods_list" style="margin-top:10%" >
    <h3>关联产品选择</h3>
    <ul id="prods_list" class="ul_list">
     <?php
        foreach($dprods as $prod){
            echo "<li><label><input type='checkbox' name='lnkprods' value='{$prod['id']}' data-txt='{$prod['lt']}'/>{$prod['lt']}</label></li>";
        }
    ?>
    </ul>
    <p>
        
        <button type="button" id="lnk_prods_ok" class="ui-button ui-button-sorange">确定</button>
		<button type="button" id="lnk_prods_cancel" class="ui-button ui-button-sblue">取消</button>
    </p>
</div>
<?}?>
<script id="list_template" type="text/template">
    <li class="list">
        {title}<a class="rm" title="删除" href="javascript:;">X</a>
        <input type="hidden" name="lnkprods[]" value="{id}">
    </li>
</script>
<script>
$(document).ready(function () {
				var ue = UE.getEditor('detailInfo1');
				//var txt_content = ue.getContent();
				
			});
			</script>
<script type="text/javascript" src="js/fun.inc.js"></script>
<script type="text/javascript" src="js/easydialog_s.min.js"></script> 
<script type="text/javascript" src="js/notice.js?v=1119"></script>
<script type="text/javascript" src="js/Calendar.js"></script>
<?
$ueditor = (strpos($_SERVER['SCRIPT_URL'],'/new/d/')===0)?
'ueditor_config_mini_note_two.js':'ueditor_config_mini_note_pft.js';
?>
<script type="text/javascript" src="ue_126/<?=$ueditor?>"></script>
<script type="text/javascript" src="ue_126/ueditor.all.min.js"></script>